﻿#region " LICENSE "
// DRILL - Dependency Resolution Interface Layer Library
// Copyright (c) 2008-2012 Wade A. Reynolds. All rights reserved.
// http://drill.codeplex.com/
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#endregion
using System;
using System.Runtime.Serialization;
using Drill.Extensibility;

namespace Drill.DrillBits.Autofac
{
	/// <summary>
	/// Thrown for Autofac DrillBit exceptions.
	/// </summary>
	[Serializable]
	public class AutofacDrillBitException : DrillBitException
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException"/> class without a message.
		/// </summary>
		public AutofacDrillBitException()
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException"/> class without a message.
		/// </summary>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		public AutofacDrillBitException(string message)
			: base(message)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException"/> class without a message.
		/// </summary>
		/// <param name="message">A human-readable description of the error.
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		public AutofacDrillBitException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="arg0">The object to write using the error message format.</param>
		public AutofacDrillBitException(string message, object arg0)
			: base(message, arg0)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="arg0">The first object to write using the error message format.</param>
		/// <param name="arg1">The second object to write using the error message format.</param>
		public AutofacDrillBitException(string message, object arg0, object arg1)
			: base(message, arg0, arg1)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="arg0">The first object to write using the error message format.</param>
		/// <param name="arg1">The second object to write using the error message format.</param>
		/// <param name="arg2">The third object to write using the error message format.</param>
		public AutofacDrillBitException(string message, object arg0, object arg1, object arg2)
			: base(message, arg0, arg1, arg2)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="args">An array of objects to write using the error message format.</param>
		public AutofacDrillBitException(string message, params object[] args)
			: base(message, args)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified error message.
		/// </summary>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		public AutofacDrillBitException(Exception innerException, string message)
			: base(innerException, message)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="arg0">The object to write using the error message format.</param>
		public AutofacDrillBitException(Exception innerException, string message, object arg0)
			: base(innerException, message, arg0)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="arg0">The first object to write using the error message format.</param>
		/// <param name="arg1">The second object to write using the error message format.</param>
		public AutofacDrillBitException(Exception innerException, string message, object arg0, object arg1)
			: base(innerException, message, arg0, arg1)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="arg0">The first object to write using the error message format.</param>
		/// <param name="arg1">The second object to write using the error message format.</param>
		/// <param name="arg2">The third object to write using the error message format.</param>
		public AutofacDrillBitException(Exception innerException, string message, object arg0, object arg1, object arg2)
			: base(innerException, message, arg0, arg1, arg2)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with the specified formatted error message.
		/// </summary>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		/// <param name="message">
		/// A human-readable description of the error. 
		/// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
		/// </param>
		/// <param name="args">An array of objects to write using the error message format.</param>
		public AutofacDrillBitException(Exception innerException, string message, params object[] args)
			: base(innerException, message, args)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="AutofacDrillBitException" /> class with serialized data.
		/// </summary>
		/// <param name="info">The <see cref="SerializationInfo" /> instance that holds the serialized object data about the exception being thrown.</param>
		/// <param name="context">The <see cref="StreamingContext" /> instance that contains contextual information about the source or destination.</param>
		/// <remarks>
		/// This constructor overload is provided in order to adhere to custom exception design best practice guidelines.
		/// </remarks>
		protected AutofacDrillBitException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}
	}
}